package com.java.bean;

/**
 * @ClassName Message
 * @Description 消息类
 * @Author 0715-YuHao
 * @Date 2020/9/8 12:47
 */
public class Message {

    /**
     * @Author 0715-YuHao
     * @Description 状态码
     * @Date 2020/9/8 12:51
     */
    private int status;

    /**
     * @Author 0715-YuHao
     * @Description 消息内容
     * @Date 2020/9/8 12:48
     */
    private String content;

    /**
     * @Author 0715-YuHao
     * @Description 消息所携带的内容
     * @Date 2020/9/8 12:48
     */
    private Object data;

    public Message() {
    }

    public Message(int status) {
        this.status = status;
    }

    public Message(int status, String content, Object data) {
        this.status = status;
        this.content = content;
        this.data = data;
    }

    public Message(int status, String content) {
        this.status = status;
        this.content = content;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
